import request from '@/utils/request'

//查
export function getShiftInfo() {
    return request({
        url: '/kaoqin/shift',
        method: 'get',
    })
}
//修改
export function updateShiftInfo(data: any) {
    return request({
        url: '/kaoqin/shift',
        method: 'put',
        data
    })
}
//新增
export function addShiftInfo(data: any) {
    return request({
        url: '/kaoqin/shift',
        method: 'post',
        data
    })
}
//删除
export const delShiftInfo = (data: number) => {
    return request({
        url: `/kaoqin/shift`,
        method: 'delete',
        data:{id:data}
    })
}
